# Contributor: Joseph Benden <joe@benden.us>
# Maintainer: Joseph Benden <joe@benden.us>

pkgname=topgit
pkgver=0.19.12
pkgrel=0
pkgdesc="A different patch queue manager"
arch="noarch"
url="https://github.com/mackyle/topgit"
license="GPL-2.0-or-later"
options="!check"
depends="git gawk sed"
makedepends="perl"
subpackages="$pkgname-doc"
source="${pkgname}-${pkgver}.tar.gz::$url/archive/${pkgname}-${pkgver}.tar.gz"
builddir="$srcdir/${pkgname}-${pkgname}-$pkgver"

build() {
	make prefix=/usr sharedir=/usr/share/doc/$pkgname
}

package() {
	make DESTDIR="$pkgdir" prefix=/usr sharedir=/usr/share/doc/$pkgname install
	# TODO: install bash completions
}

sha512sums="cb9245fbec7a4a15822a5b70d7052be200aa8b574b528dd929121597eb7dcec97532b0fd4d6a4d6bb63676194ed0ab2129e106fb88f63561187620ec431f9efb  topgit-0.19.12.tar.gz"
